package com.example.script.portal.model.dto;

import io.swagger.annotations.ApiModelProperty;

/**
 * 用户注册时候前端传递到后端的数据参数
 */
public class UserRegisterParam {
    @ApiModelProperty(value = "用户名")
    private String username;
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(value = "性别 1-男 2-女")
    private Integer sex;
    @ApiModelProperty(value = "电话号码")
    private String phoneNumber;
    @ApiModelProperty(value = "身份标识 1-玩家 2-店家")
    private Long role;
    @ApiModelProperty(value = "年龄")
    private Integer age;
    @ApiModelProperty(value = "真实姓名")
    private String realName;
    @ApiModelProperty(value = "自我介绍")
    private String showMyself;


    public UserRegisterParam(String username, String password, Integer sex, String phoneNumber, Long role, Integer age, String realName, String showMyself, String code) {
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.phoneNumber = phoneNumber;
        this.role = role;
        this.age = age;
        this.realName = realName;
        this.showMyself = showMyself;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public Long getRole() {
        return role;
    }

    public void setRole(Long role) {
        this.role = role;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getShowMyself() {
        return showMyself;
    }

    public void setShowMyself(String showMyself) {
        this.showMyself = showMyself;
    }


    @Override
    public String toString() {
        return "UserRegisterParam{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", sex=" + sex +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", role=" + role +
                ", age=" + age +
                ", realName='" + realName + '\'' +
                ", showMyself='" + showMyself + '\'' +
                '}';
    }
}
